home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_actor_quetzalcoatl.cog < prev    next >
Text File  |  1999-11-15  |  2KB  |  86 lines

  1. # Jones 3D Cog Script
  2. #
  3. # actor_quetzalcoatl.cog
  4. #
  5. # [MDR]
  6. #
  7. # (C) 1999 LucasArts Entertainment Company LLC. All Rights Reserved
  8. #
  9. #    #####  Notes  #####
  10. #
  11. # ===================================================================
  12.  
  13. symbols
  14.  
  15. message        created
  16. message        aievent
  17. message        timer
  18. message     killed
  19. message        touched
  20. message        damaged
  21.  
  22. thing        t_Indy                        local
  23. thing        t_Boss                        local
  24. sound        ricochet=gen_ricochet_boss.wav    local
  25.  
  26. end
  27.  
  28. # ===================================================================
  29.  
  30. code
  31.  
  32. # ...................................................................
  33. created:
  34.     t_Indy    = GetLocalPlayerThing();
  35.     t_Boss        = GetSenderRef();
  36.  
  37.     return;
  38.  
  39. # ...................................................................
  40. aievent:
  41.  
  42.     return;
  43.  
  44.  
  45. # ...................................................................
  46. timer:
  47.  
  48.  
  49. # ...................................................................
  50. touched:
  51.  
  52.     return;
  53.  
  54. # ...................................................................
  55. damaged:
  56.     // Quetz only gets damaged by spikes
  57.     // Using razor rock damage
  58.     if (GetParam(1) != 0x400000)
  59.     {
  60.         // Projectiles ricochet off the boss
  61.         if (BITTEST(GetParam(1), 0x1))
  62.         {
  63.             PlaySoundThing(ricochet, t_Boss, 1.0, 0.0, 40.0, 0x880);
  64.         }
  65.         ReturnEx(0);
  66.     }
  67.  
  68.     return;
  69.  
  70.  
  71. # ...................................................................
  72. killed:
  73.  
  74.     return;
  75.  
  76.  
  77. # ===================================================================
  78. #    Subroutines
  79. # ===================================================================
  80.  
  81. # ...................................................................
  82.  
  83.  
  84. end
  85.  
  86.